/**
 * 自定义线程类
 */
package edu.gzz.thread;

/**
 * @author gzz
 *
 */
public class SimpleThread extends Thread {

	protected static int sum = 0;

	@Override
	public void run() {

		for (int i = 0; i < 5; i++) {
			System.out.println(getName() + "运行 :\t" + i + "\t" + sum);

			try {
				sleep((int) Math.random() * 10);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}